-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: switch to font display swap #641
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems good, load feels instantaneous and no perceptible shift for me.
@@ -21,7 +21,7 @@ | |||
"@radix-ui/react-checkbox": "^1.0.0", | |||
"@radix-ui/react-collapsible": "^1.0.0", | |||
"@radix-ui/react-toggle-group": "^1.0.1", | |||
"@stitches/react": "1.2.8", | |||
"@stitches/react": "1.3.1-1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adds TS support for FontFace types like sizeAdjust
What I did
We think
font-display: swap
is better for LCP and our use cases like rendering text ASAP.Testing steps